package com.blog.backend.mapper;

import com.blog.backend.model.BlogAccount;
import com.blog.backend.resp.SysSettingResp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BlogAccountMapper {
    int deleteByPrimaryKey(String userId);

    int insert(BlogAccount record);

    int insertSelective(BlogAccount record);

    BlogAccount selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(BlogAccount record);

    int updateByPrimaryKey(BlogAccount record);

    /**
     * 根据账号名查询用户
     * @param userName
     * @return
     */
    BlogAccount selectUser(@Param("userName") String userName);

    List<SysSettingResp> getSettingList();
}